function xslt_attribute_1() { 
var value = '';
value += xslt_value_of_2();
$('#my:general_field').attr('xd:value',value);
}
function xslt_value_of_2() { 
return $('#my:general_field').val();
}
function xslt_if_3() { 
if (my:general_field="true")
{
var result = false;
result += xslt_attribute_4();
return result;
}
return false;
}
function xslt_attribute_4() { 
var value = '';
value += xslt_text_5();
$('#my:general_field').attr('CHECKED',value);
}
function xslt_text_5() { 
return 'CHECKED';
}
function xslt_choose_6() { 
var result = '';
if (!result) result = xslt_when_7();
return result;
}
function xslt_when_7() { 
if (my:general_field = string(false()))
{
var result = '';
result += xslt_attribute_8();
return result;
}
return false;
}
function xslt_attribute_8() { 
var value = '';
value += xslt_text_9();
$('#my:detail_field_1').attr('disabled',value);
}
function xslt_text_9() { 
return 'true';
}
function xslt_attribute_10() { 
var value = '';
value += xslt_value_of_11();
$('#my:detail_field_1').attr('xd:value',value);
}
function xslt_value_of_11() { 
return $('#my:detail_field_1').val();
}
function xslt_if_12() { 
if (my:detail_field_1="true")
{
var result = false;
result += xslt_attribute_13();
return result;
}
return false;
}
function xslt_attribute_13() { 
var value = '';
value += xslt_text_14();
$('#my:detail_field_1').attr('CHECKED',value);
}
function xslt_text_14() { 
return 'CHECKED';
}
function xslt_choose_15() { 
var result = '';
if (!result) result = xslt_when_16();
return result;
}
function xslt_when_16() { 
if (my:general_field = string(false()))
{
var result = '';
result += xslt_attribute_17();
return result;
}
return false;
}
function xslt_attribute_17() { 
var value = '';
value += xslt_text_18();
$('#my:detail_field_2').attr('disabled',value);
}
function xslt_text_18() { 
return 'true';
}
function xslt_attribute_19() { 
var value = '';
value += xslt_value_of_20();
$('#my:detail_field_2').attr('xd:value',value);
}
function xslt_value_of_20() { 
return $('#my:detail_field_2').val();
}
function xslt_if_21() { 
if (my:detail_field_2="true")
{
var result = false;
result += xslt_attribute_22();
return result;
}
return false;
}
function xslt_attribute_22() { 
var value = '';
value += xslt_text_23();
$('#my:detail_field_2').attr('CHECKED',value);
}
function xslt_text_23() { 
return 'CHECKED';
}
function xslt_attribute_24() { 
var value = '';
value += xslt_text_25();
value += xslt_choose_26();
$('#my:field1').attr('style',value);
}
function xslt_text_25() { 
return 'WIDTH: 130px;';
}
function xslt_choose_26() { 
var result = '';
if (!result) result = xslt_when_27();
return result;
}
function xslt_when_27() { 
if (my:general_field = string(false()))
{
var result = '';
result += xslt_text_28();
return result;
}
return false;
}
function xslt_text_28() { 
return 'COLOR: #ff0000';
}
function xslt_choose_29() { 
var result = '';
if (!result) result = xslt_when_30();
return result;
}
function xslt_when_30() { 
if (my:general_field = string(false()))
{
var result = '';
result += xslt_attribute_31();
return result;
}
return false;
}
function xslt_attribute_31() { 
var value = '';
value += xslt_text_32();
$('#my:field1').attr('contentEditable',value);
}
function xslt_text_32() { 
return 'false';
}
function xslt_value_of_33() { 
return $('#my:field1').val();
}

// Event Maps JSON
var EventMaps = [
{ event : 'onchange', element_id : 'my:general_field ', callback : xslt_when_7},
{ event : 'onchange', element_id : 'my:general_field ', callback : xslt_when_16},
{ event : 'onchange', element_id : 'my:general_field ', callback : xslt_attribute_24},
{ event : 'onchange', element_id : 'my:general_field ', callback : xslt_when_30}
];